Skip to main content

All Questions

4votes
1answer
210views

class that handles the rpg game map

I created a class to handle maps in my RPG game, before it became a class this was a collection of functions I created, but I thought it could be used as a class. although this code is working but i ...
syafiqfadillah's user avatar
9votes
4answers
3kviews

Python text-based Tic Tac Toe

I created a simple text-based Tic Tac Toe game in Python using OOP. Currently the computer moves are completely random - I plan to add some sort of algorithm later (no idea how to do that yet though) ...
Nadi726's user avatar
4votes
1answer
117views

First Attempt at Object-Oriented Programming: Tic-Tac-Toe

I began learning python about 3 months ago, and this was my first OOP. I was hoping to get constructive feedback. My own thoughts after writing it were that there had to be a better way to: 1) ...
Jacob Garwin's user avatar
7votes
3answers
3kviews

Battleships OOP python

This is my first attempt at some basic OOP programming. A version of battleships played within the terminal. Any feedback would be great; especially in regards to readability and proper naming ...
user avatar
3votes
2answers
79views

FAMILY.PY | OOPython

Simple code where family and person instances can be created. There is a method where any instance of Person can be added to any instance of Family. ...
notak's user avatar
3votes
0answers
826views

OOP Othello in Python with tkinter UI and basic AI

I wrote an Othello version with limited UI to try to learn python(3.7) and OOP. The game has 8 classes. Start creates a controller object which is responsible for the logical flow of the game. ...
E. Hall's user avatar
4votes
1answer
820views

Movement function for a Sokoban game using Python [closed]

I've been working on the functions that handle when a player's sprite interacts with either a wall (0) or say the crate to push (£) I'm just wondering how this looks and if there alternative methods, ...
James D's user avatar
11votes
2answers
782views

2D console robot wars

I'm working on a mini project to force me to learn OOP in Python and expand my range of tools. Essentially, I just want to code a basic console application where I will have a 2D 'terrain' where there ...
ApplePie's user avatar
4votes
2answers
2kviews

Object-oriented Tic-Tac-Toe game

I implemented an object-oriented version of a Tic-Tac-Toe game in Python 3. I'd like to have feedback on general code style and possible optimizations. ...
Richard Neumann's user avatar
7votes
1answer
479views

Console-based TicTacToe game

Recently I have been wanting to get better with Python, in particular with Python 3.x features and Python OOP, so I wrote what I thought at first would be pretty simple, a TicTacToe game, which turned ...
Phrancis's user avatar
2votes
0answers
465views

Beginner grid-based game movement engine (PART 2)

I've tried to make the code overall more PEP-8 friendly and added more comments to make it more readable. Added some new functions and methods like ranged attack and allegiance. Play around with it. ...
user avatar
8votes
2answers
6kviews

Skill creation in a Python text-based RPG

I am in the process of creating a text-based RPG for the purpose of learning more about OOP in Python. Right now things are going well, but I'm facing a problem that I don't exactly can find a good ...
inblank's user avatar
8votes
1answer
2kviews

2 Player Battleship Game

This is an adaption of a single player Battleship game. I made it two player, and I also tried to implement OOP and DRY principles. I would like my code to be reviewed for OOP, DRY, PEP8, and overall ...
kcwagenseller's user avatar
4votes
1answer
234views

Creating a game with rectangular shapes

I'm using Pygame to create a small game with few rectangle shapes. However, I want to learn more about classes, and I'm trying to use them. I'm very new to classes and inheritance, but I want to ...
dragons's user avatar

close